package com.spring.lesson001.demo1;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author vhans
 */
public class Client {
    public static void main(String[] args) {
        String beanXml = "bean0011.xml";
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(beanXml);
        HelloWord helloWorld = context.getBean("helloWorld", HelloWord.class);
        helloWorld.say();
    }
}
